﻿using B.S.BasicData.Api.Read.DTOS;
using B.S.BasicData.ErrorCode;
using MediatR;

namespace B.S.BasicData.Api.Read.Application.Command.Approval
{
    /// <summary>
    /// 获取请假报表命令
    /// </summary>
    public class GetReportlistCommand : IRequest<ApiResult<List<ReportDto>>>
    {
        /// <summary>
        /// 用户名称（模糊查询）
        /// </summary>
        public string? UserName { get; set; }
        
        /// <summary>
        /// 年份，默认为当前年份
        /// </summary>
        public int Year { get; set; } = DateTime.Now.Year;
    }
}
